<template>
    <div class="hello">
        <h1>{{ msg }}</h1>
        <mt-button @click.native="test">按钮</mt-button>
        <div @click="test1">sadfasdfas</div>
    </div>
</template>

<script>
    /* eslint-disable no-unused-vars,quotes */

    import {DatetimePicker, Button, Toast} from 'mint-ui'
    export default {
      name: 'hello',
      data () {
        return {
          msg: 'Welcome to Your Vue.js App'
        }
      },
      methods: {
        test () {
          Toast("已经点过赞了，不能再点")
        },
        test1 () {
          Toast("已经点过赞sadfdsaf")
        }
      }
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    h1, h2 {
        font-weight: normal;
    }

    ul {
        list-style-type: none;
        padding: 0;
    }

    li {
        display: inline-block;
        margin: 0 10px;
    }

    a {
        color: #42b983;
    }
</style>
